package cn.hdu.liang.proandcon;

public class MyThreadB extends Thread {
    private MyService service;

    public MyThreadB(MyService service) {
        super();
        this.service = service;
    }

    @Override
    public void run() {
        for(int i = 0; i < 100; i++) {
            service.get();
        }
    }
}
